feat(string): add strCapitalizeWords with docs and tests#528
Conversation
nev21
commented
Mar 19, 2026
- add strCapitalizeWords to string conversion helpers export strCapitalizeWords from the public index
- add comprehensive conversion tests, including comparisons vs strLetterCase and strCamelCase behavior
- update usage docs and README utility listings with new examples and conversion notes
There was a problem hiding this comment.
Pull request overview
This PR adds a new string conversion helper, strCapitalizeWords, and wires it into the public exports and documentation, alongside updating tests and bundle-size thresholds to account for the added functionality.
Changes:
- Added
strCapitalizeWords()implementation with TSDoc inlib/src/string/conversion.ts. - Exported
strCapitalizeWordsfrom the public entrypoint and added/expanded conversion tests. - Updated usage docs/README and adjusted bundle-size check limits.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/string/conversion.ts | Adds the new strCapitalizeWords() conversion helper and documentation. |
| lib/src/index.ts | Exports strCapitalizeWords from the library public API. |
| lib/test/src/common/string/conversion.test.ts | Adds tests validating strCapitalizeWords behavior and contrasts vs other converters. |
| lib/test/bundle-size-check.js | Relaxes gzipped UMD size thresholds to accommodate the new helper. |
| docs/usage-guide.md | Updates usage examples and notes to include strCapitalizeWords. |
| docs/feature-backlog.md | Removes strCapitalizeWords (and related entry) from the backlog now that it’s implemented. |
| README.md | Updates feature list and utility listings/links to include strCapitalizeWords. |
- add strCapitalizeWords to string conversion helpers export strCapitalizeWords from the public index - add comprehensive conversion tests, including comparisons vs strLetterCase and strCamelCase behavior - update usage docs and README utility listings with new examples and conversion notes
There was a problem hiding this comment.
Pull request overview
Adds a new string conversion helper (strCapitalizeWords) to @nevware21/ts-utils, exposing it publicly and documenting/testing its behavior alongside existing conversion utilities.
Changes:
- Added
strCapitalizeWords()implementation to the string conversion helpers and exported it from the public index. - Expanded conversion test coverage to include
strCapitalizeWordsand explicit behavior comparisons vsstrLetterCase/strCamelCase. - Updated docs/README listings and examples to include the new helper.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/string/conversion.ts | Introduces strCapitalizeWords() and its TSDoc next to existing conversion helpers. |
| lib/src/index.ts | Exports strCapitalizeWords from the public entrypoint. |
| lib/test/src/common/string/conversion.test.ts | Adds comprehensive tests for strCapitalizeWords, including comparisons to related helpers. |
| docs/usage-guide.md | Updates usage examples/import list to include strCapitalizeWords and clarifies conversion differences. |
| README.md | Updates feature list + utility matrix to include strCapitalizeWords. |
| docs/feature-backlog.md | Removes strCapitalizeWords from “proposed” items now that it’s implemented. |
| lib/test/bundle-size-check.js | Raises gzipped bundle size thresholds for es5/es6 min bundles. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a new string conversion helper (strCapitalizeWords) to @nevware21/ts-utils, exposing it publicly and documenting/testing its behavior alongside existing case conversion utilities.
Changes:
- Introduce
strCapitalizeWords()inlib/src/string/conversion.tsand export it from the public index. - Expand common string conversion tests to cover
strCapitalizeWordsand compare behavior vsstrLetterCase/strCamelCase. - Update documentation (usage guide, README listings) and adjust bundle size thresholds.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/string/conversion.ts | Adds strCapitalizeWords() implementation and TSDoc; includes a small doc edit in strCamelCase comment. |
| lib/src/index.ts | Exports strCapitalizeWords from the public package surface. |
| lib/test/src/common/string/conversion.test.ts | Adds test coverage for strCapitalizeWords and behavioral comparisons. |
| lib/test/bundle-size-check.js | Raises gzipped bundle size limits for ES5/ES6 min builds. |
| docs/usage-guide.md | Adds import/example and clarifies conversion behavior differences. |
| docs/feature-backlog.md | Removes implemented items from one backlog section. |
| README.md | Updates feature list and utilities matrix to include strCapitalizeWords. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #528 +/- ##
=======================================
Coverage 98.81% 98.81%
=======================================
Files 136 136
Lines 3969 3973 +4
Branches 847 848 +1
=======================================
+ Hits 3922 3926 +4
Misses 47 47
🚀 New features to boost your workflow:
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
nevware21-bot
left a comment
There was a problem hiding this comment.
Approved by nevware21-bot